import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const mainUrl = 'portfolio-server/maatProduct';
const api = apiCreator();
export default {
  // 查询产品信息列表格数据
  getList: (query) => api.post(`${config.interfaces.type5}${mainUrl}/productManageList`, query),
  // 新增编辑保存产品管理信息
  savefN: (query) => api.post(`${config.interfaces.type5}${mainUrl}/save`, query),
  // 查看产品详情信息
  detailInfo: (query) => api.get(`${config.interfaces.type5}${mainUrl}/queryById`, query),
  // 删除产品管理信息
  delInfo: (query) => api.get(`${config.interfaces.type5}${mainUrl}/deleteOne`, query),
  //上传模板
  uploadFile: (query) => api.uploadFile(`${config.interfaces.type10}portfolio-server/liability/upload`, {}, query),
  //查询负债端维护列表
  getLiabilitySideInfo: (query) => api.get(`${config.interfaces.type5}portfolio-server/liability/getLiabilitySideInfo`, query),
  //保存负债端维护列表
  saveLiability: (query) => api.post(`${config.interfaces.type5}portfolio-server/liability/save`, query),
  // 获取下拉数据源：交易模式、交易市场
  tradingInformationDrop: (query) => api.get(`${config.interfaces.type5}${mainUrl}/trading-information-drop-down`, query),
};
